package com.accompany.service;

import com.accompany.entity.ChatMessage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 聊天消息表 服务类
 * </p>
 *
 * @author DC
 * @since 2024-12-26
 */
public interface ChatMessageService extends IService<ChatMessage> {

    Page<ChatMessage> getPaginatedChatMessages(Integer page, Integer size);

    List<ChatMessage> getAllChatMessages();

    ChatMessage getChatMessageById(Long id);

    void updateChatMessage(ChatMessage chatMessage);

    void deleteChatMessage(Long id);

    void createChatMessage(ChatMessage chatMessage);
}
